package com.example.online.entity;

public class User {
    private String name;
    private String phone;
    private String pwd;
    private int loginNumber;

    public User() {
    }

    public User(String name, String phone, String pwd, int loginNumber) {
        this.name = name;
        this.phone = phone;
        this.pwd = pwd;
        this.loginNumber = loginNumber;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public int getLoginNumber() {
        return loginNumber;
    }

    public void setLoginNumber(int loginNumber) {
        this.loginNumber = loginNumber;
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", phone='" + phone + '\'' +
                ", pwd='" + pwd + '\'' +
                ", loginNumber=" + loginNumber +
                '}';
    }
}
